<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<%@ include file="/admin/web/include/head.jsp"%>
	</head>
	<body>
	
	<table class="grid" title="${model.objName}">
		<thead>
			<tr >
			 	<#list model.modelFiled as modelField>
				<th width="50">${modelField}</th>
				</#list>
			</tr>
		</thead>
		<tbody>
		
		<c:forEach items="${"$"}${"{"}${model.objName}List${"}"}" var="${model.objName}">
			<tr>
				<#list model.modelFiled as modelField>
					<td>${"$"}${"{"}${model.objName}.${modelField}${"}"}</td>
				</#list>
 	 			<td><a href="${"$"}${"{"}basePath${"}"}admin/${model.currentPackageName}/${model.objName}/edit.action?id=${"$"}${"{"}${model.objName}.${model.pk}${"}"}">编辑</a></td>
 	 			<td><a href="${"$"}${"{"}basePath${"}"}admin/${model.currentPackageName}/${model.objName}/del.action?id=${"$"}${"{"}${model.objName}.${model.pk}${"}"}">删除</a></td>
 	 		</tr>
 	 	</c:forEach>
		</tbody>
		<div id="page" url="${"$"}${"{"}basePath${"}"}admin/${model.currentPackageName}/${model.objName}/admin.action" start="${"$"}${"{"}start${"}"}" limit="${"$"}${"{"}limit${"}"}" total="${"$"}${"{"}totalProperty${"}"}"></div>
		<input id="add" type="button" value="添加" onclick="document.location.href='${"$"}${"{"}basePath${"}"}admin/${model.currentPackageName}/${model.objName}/edit.action';"/>
	</table>	
	</body>
</html>
